package com.itcc.service.impl;

import com.itcc.dao.UserDao;
import com.itcc.domain.User;
import com.itcc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;


    @Override
    public String[] getUserName() {
        return userDao.getUserName();
    }

    @Override
    public boolean register(String username, String password) {
        return userDao.register(username, password);
    }

    @Override
    public User login(String username) {
        return userDao.login(username);
    }
}
